package com.example.core.service;

import com.example.core.po.BaseTreePo;
import com.example.core.vo.BaseTreeVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
import java.util.List;

public interface BaseTreeService<T extends BaseTreePo, V extends BaseTreeVo> extends BaseService<T, V> {

    public List<T> findRoot(HttpServletRequest request, HttpServletResponse response);

    public List<T> findByPId(Serializable pid);

    public T buildTree(T po);

    public List<T> findTreeList(HttpServletRequest request, HttpServletResponse response);
}
